package cn.itcast.nems.journal.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

import java.time.LocalDate;

/**
 * author liyong
 * create: 2024-01-12 16:16:17
 **/
@Data
public class JournalChangeDateSearch {
    private int pageNumber = 1;
    private int pageSize = 30;
    /**
     * 班级ID
     */
    private Integer clazzId;

    /**
     * 操作开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate startDate;

    /**
     * 操作结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate endDate;

    /**
     * 改期凭单ID
     */
    private String journalId;
    /**
     * 校区ID
     */
    private String campusId;
    /**
     * 改期操作人名字
     */
    private String operatorName;

    /**
     * 改期操作人邮箱
     */
    private String createdBy ;
}
